---
id: options-hardwareBackButton
title: Hardware Back Button Options
sidebar_label: Hardware Back Button
---

Controls Android hardware back button.

```js
const options = {
  hardwareBackButton: {},
};
```

### `dismissModalOnPress`

Controls whether the hardware back button should dismiss modal or not.

| Type    | Required | Default | Platform |
| ------- | -------- | ------- | -------- |
| boolean | No       | true    | Android  |

### `popStackOnPress`

Controls whether the hardware back button should pop stacks or not.

| Type    | Required | Default | Platform |
| ------- | -------- | ------- | -------- |
| boolean | No       | true    | Android  |


### `bottomTabsOnPress`

Controls hardware back button bottom tab selection behaviour,
`first` will jump to first tab,
`previous` will do reverse selection,
`exit` (Default) will just exit the bottom tabs.

| Type                             | Required | Default   | Platform |
| -------------------------------- | -------- | --------- | -------- |
| enum('exit', 'first', 'previous') | No       | 'exit'    | Android  |
